#!/usr/local/bin/python
# -*- coding: utf-8 -*-
from PyQt5.QtCore import Qt
from PyQt5.QtWidgets import QDialog

from ui.IncomeStatementDetailDialogUI_relative_layout import Ui_IncomeStatementDetailDialog


class IncomeStatementDetailDialog(QDialog, Ui_IncomeStatementDetailDialog):

    '''
    类功能：用来展示收支详情对话框
    '''
    def __init__(self, parent, selectRow, selectText, year, month):
        QDialog.__init__(self, parent)  # 必须此调此构造方法来设置父窗口
        #self.setWindowFlags(QtCore.Qt.WindowCloseButtonHint)
        self.setupUi(self)

        # 单独移除帮助按钮
        self.setWindowFlag(Qt.WindowContextHelpButtonHint, False)
        #self.initDetailTableUI()
        #self.initDetailTableData(selectRow, selectText, year, month)